$OpenBSD: patch-v8_src_base_platform_platform-posix_cc,v 1.7 2015/07/23 13:44:04 robert Exp $
--- v8/src/base/platform/platform-posix.cc.orig.port	Wed Jul 15 22:32:20 2015
+++ v8/src/base/platform/platform-posix.cc	Wed Jul 22 08:37:30 2015
@@ -333,6 +333,8 @@ int OS::GetCurrentThreadId() {
   return static_cast<int>(thread_self());
 #elif V8_OS_SOLARIS
   return static_cast<int>(pthread_self());
+#elif V8_OS_OPENBSD
+  return reinterpret_cast<uint64_t>(pthread_self());
 #else
   return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self()));
 #endif
